import service from "@/service/server";

/**
 * 客户列表
 */
export const customList = async (data) => {
  return await service({
    method: "post",
    url: "/lwsc/cuslist",
    dataType: "json",
    data,
  });
};

/**
 * 客户详情
 */
export const customDetail = async (data) => {
  return await service({
    method: "post",
    url: "/lwsc/cusdetail",
    dataType: "json",
    data,
  });
};


/**
 * 客户编辑
 */
export const customEdit = async (data) => {
  return await service({
    method: "post",
    url: "/lwsc/cusedit",
    dataType: "json",
    data,
  });
};

/**
 * 沟通列表
 */
export const custVisitList = async (data) => {
  return await service({
    method: "post",
    url: "/lwsc/custvisitlist",
    dataType: "json",
    data,
  });
};

/**
 * 添加沟通记录
 */
export const custVisitAdd = async (data) => {
  return await service({
    method: "post",
    url: "/lwsc/custvisitadd",
    dataType: "json",
    data,
  });
};

/**
 * 查询账户信息
 */
export const getAccounts = async (data) => {
  return await service({
    method: "post",
    url: "/lwsc/getaccounts",
    dataType: "json",
    data,
  });
};

/**
 * 查询渠道信息
 */
export const getCusqd = async (data) => {
  return await service({
    method: "post",
    url: "/lwsc/getcusqd",
    dataType: "json",
    data,
  });
};